home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / progutil / stdwin.zoo / alfa / menu.h < prev    next >
C/C++ Source or Header  |  1989-10-17  |  725b  |  27 lines

  1. /* TERMCAP STDWIN -- MENU DEFINITIONS. */
  2.  
  3. struct item {
  4.     char *text;        /* The item's text */
  5.     char *shortcut;        /* Visible representation of the shortcuts */
  6.     tbool enabled;        /* Can be selected */
  7.     tbool checked;        /* Check mark left of menu text */
  8. };
  9.  
  10. struct menu {
  11.     int id;            /* Menu id, reported by wgetevent */
  12.     char *title;        /* Menu title string */
  13.     bool local;        /* Set if must explicitly attach to windows */
  14.     bool dirty;        /* Set if items have changed */
  15.     int left, right;    /* Left & right edge of title in menu bar */
  16.     int maxwidth;        /* Max width of items */
  17.     int nitems;        /* Number of items */
  18.     struct item *itemlist;    /* List of items */
  19. };
  20.  
  21. #define MENU struct menu
  22.  
  23. struct menubar {
  24.     int nmenus;
  25.     MENU **menulist;
  26. };
  27.